import request from "@/utils/request";

const BASE_URL = "/supervisor-api/ai";

class AiAPI {
  /**
   * 登录成功后获取用户信息（昵称、头像、权限集合和角色集合）
   *
   * @returns 用户信息
   */
  static send(question: string) {
    return request<any, any>({
      url: `${BASE_URL}/send?question=${question}`,
      method: "get",
    });
  }
}

export default AiAPI;
